package com.web.exiaodao.business.entity;

import com.web.webstart.base.entity.BaseEntity;
import com.wordnik.swagger.annotations.ApiModel;
import com.wordnik.swagger.annotations.ApiModelProperty;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 
* @ClassName: ArtInformation 
* @Description: 玩/艺术/学乐/达人-作者表定义表
* @author eason
* @date 2016-11-03 12:08:45
*
 */
@Entity
@Table(name = "tb_xa_artinformation")
@ApiModel(value="玩/艺术/学乐/达人-作者表定义表")
public class ArtInformation extends BaseEntity{

	private static final long serialVersionUID = 1L;
	
	@ApiModelProperty(value="作者名称,作者名称")
	private String authorName;
	@ApiModelProperty(value="性别,1:男 2女")
	private String authorSex;
	@ApiModelProperty(value="出生日期,出生日期")
	private String authorAge;
	@ApiModelProperty(value="头衔头衔,头衔Title,CLass；如：复旦大学教授，教育局主任；")
	private String authorTitle;
	@ApiModelProperty(value="作者爱好,作者爱好；eg(爱好书法，国画)")
	private String authorHobby;
	@ApiModelProperty(value="头像,单张,头像链接")
	private String authorIconPic;
	@ApiModelProperty(value="个人简介（富文本）,个人简介（富文本）")
	private String authorIntroduce;
	@ApiModelProperty(value="主要展览,主要展览")
	private String authorExhibition;
	@ApiModelProperty(value="作者手机号,作者手机号")
	private String authorMobile;
    @ApiModelProperty(value = "点击量,点击量")
    private Long clickCont;
    @ApiModelProperty(value="排序值,排序值")
    private Long sort;
    
    public static final long SORT_DEFAULT = 9999999L;

    public ArtInformation() {
		// TODO Auto-generated constructor stub
	}

	
	public void setAuthorName(String authorName){
		this.authorName=authorName;
	}
	
	@Column(nullable=true,length=50)
	public String getAuthorName(){
		return authorName;
	}
	public void setAuthorSex(String authorSex){
		this.authorSex=authorSex;
	}
	
	@Column(nullable=true,length=50)
	public String getAuthorSex(){
		return authorSex;
	}
	public void setAuthorAge(String authorAge){
		this.authorAge=authorAge;
	}
	
	@Column(nullable=true,length=50)
	public String getAuthorAge(){
		return authorAge;
	}
	public void setAuthorTitle(String authorTitle){
		this.authorTitle=authorTitle;
	}
	
	@Column(nullable=true,length=50)
	public String getAuthorTitle(){
		return authorTitle;
	}
	public void setAuthorHobby(String authorHobby){
		this.authorHobby=authorHobby;
	}
	
	@Column(nullable=true,length=50)
	public String getAuthorHobby(){
		return authorHobby;
	}
	public void setAuthorIconPic(String authorIconPic){
		this.authorIconPic=authorIconPic;
	}
	
	@Column(nullable=true,length=50)
	public String getAuthorIconPic(){
		return authorIconPic;
	}
	public void setAuthorIntroduce(String authorIntroduce){
		this.authorIntroduce=authorIntroduce;
	}
	
	@Column(nullable=true,length=50,columnDefinition="MEDIUMTEXT")
	public String getAuthorIntroduce(){
		return authorIntroduce;
	}
	public void setAuthorExhibition(String authorExhibition){
		this.authorExhibition=authorExhibition;
	}
	
	@Column(nullable=true,length=50,columnDefinition="MEDIUMTEXT")
	public String getAuthorExhibition(){
		return authorExhibition;
	}
	public void setAuthorMobile(String authorMobile){
		this.authorMobile=authorMobile;
	}
	
	@Column(nullable=true,length=50)
	public String getAuthorMobile(){
		return authorMobile;
	}
    @Column(nullable = true, length = 50)
    public Long getClickCont() {
        return clickCont;
    }

    public void setClickCont(Long clickCont) {
        this.clickCont = clickCont;
    }

    @Column(nullable = true, length = 50)
    public Long getSort() {
        return sort;
    }

    public void setSort(Long sort) {
        this.sort = sort;
    }

    @Override
    public void setInsertBefore() {
        super.setInsertBefore();
        if (sort == null) {
            sort = SORT_DEFAULT;//排序默认值
        }
    }	

}
